setText

open fun setText(text: String)

Sets the text content for the QR code and triggers a regeneration and download of the QR code image.

Parameters

text

The new text value to be encoded in the QR code. If null, it will be treated as an empty string.